package com.example.qxfw.ybzz.service;

import com.example.qxfw.common.entity.zy.TourFcst;

import java.util.List;

public interface TourFcstService {

    /**
     * 获取最新时间
     * @return
     */
    TourFcst getMaxTime();

    /**
     * 获取时次
     * @return
     */
    List<String> getTimeChar(String forecastType, String dateChar);

    List<TourFcst> getList(String dateChar,String timeChar,String nTimes,String nTimes24,String nTimes12,String stationName,String forecastType);

    List<TourFcst> getList1(String dateChar1,String dateChar2,String forecastType);

    List<TourFcst> getList2(String dateChar,String timeChar,String nTimes12,String nTimes24,String stationName);

    List<TourFcst> listByParam(String dateChar,String timeChar,Integer nTimes1,Integer nTimes2,String stationId);

    /**
     * 删除旅游预报
     * @param forecastTime
     * @param strTimeChar
     * @param stationID
     * @return
     */
    Integer delete(String forecastTime,String strTimeChar,String stationID);

    Integer delete1(String stationId,String dateChar,String timeChar);

    /**
     * 添加旅游预报
     * @param tourFcst
     * @return
     */
    TourFcst save(TourFcst tourFcst);

    /**
     * 更新
     * @param tourFcst
     * @return
     */
    TourFcst update(TourFcst tourFcst);
}
